package com.weai.portal.repository;

import com.weai.portal.entity.AiList;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * AI清单数据访问层
 */
@Repository
public interface AiListRepository extends JpaRepository<AiList, Long> {
    
    /**
     * 根据标题模糊查询
     * @param title 标题关键词
     * @return 匹配的AI清单列表
     */
    @Query("SELECT a FROM AiList a WHERE a.title LIKE %:title%")
    List<AiList> searchByTitle(@Param("title") String title);
} 